package com.weiyuwqj.api.model.convert;

/**
 * Created by huzj on 2016/9/8.
 */
public class CustomerTypeConvert extends DefaultConvert{
    @Override
    public Object convert(Object val) {
        if (val == null) return "";
        if (!(val instanceof Integer)) {
            return "";
        }
        int type = (Integer) val;
        if (type == 0) {
            return "普通用户";
        } else if (type == 1) {
            return "业务员";
        } else if (type == 2) {
            return "员工";
        } else if (type == 3) {
            return "渠道用户";
        }else {
            return "其他";
        }
    }
}
